/*
 *  Tower.cpp
 *  Rempart
 *
 *
 */

#include "Tower.h"


Tower::Tower(){
	
	this->elementType=MapElement::tower;
	this->SetImage(*RessourcesManager::getDefaultTowerSurface());
	this->Resize(30,60);
	this->SetCenter(0,MapElement::getHeigth()); // Notre image s'étend sur 2 cases.
	this->resetDefaultSurface();
	
}

void Tower::resetDefaultSurface(){
	this->visible = true;
	this->SetImage(*RessourcesManager::getDefaultTowerSurface());
}

void Tower::setSecured(){
	this->secured = true;
	this->SetImage(*RessourcesManager::getSecureTowerSurface());
}
void Tower::unsetSecured(){
	this->secured = false;
	this->resetDefaultSurface();
}
